package com.huynv.ochuvietnam;


import com.huynv.ochuvietnam.MainActivity;
import com.huynv.ochuvietnam.viewWeb;
import com.huynv.ochuvietnam.R;
import com.huynv.ochuvietnam.textAdapter;


import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.GridView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;

public class MainActivity extends Activity {
	
	Button btn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		btn = (Button)findViewById(R.id.btn);		
		btn.setOnClickListener(new OnClickListener() {
		    public void onClick(View v) {
		        // TODO Auto-generated method stub
		    	Intent vi = new Intent(MainActivity.this, Game.class);
				//Intent vi = new Intent(Intent.ACTION_VIEW, Uri.parse(link));
//				vi.putExtra("link", link);			
//				vi.putExtra("id", idNews);
//				vi.putExtra("hasContent", hasContentRelated);
				//vi.setData(Uri.parse(link));
				startActivity(vi);
		    		
		    }
		 });
	}
}
